package com.kye.express.business.jd.order_detail.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author : Joe
 * @version : 1.0
 * @editor : Joe
 * @created : 25/01/2018
 * @updated : 25/01/2018
 * @description : <Description>
 * @update_reason : <UpdateReason>
 */

public class JDOrderDetailModel implements Parcelable {

    // 订单编号
    private String orderCode;
    // 订单状态
    private String orderState;
    // 物流信息
    private String logisticsInfo;
    // 产品民称
    private String goodsName;
    // 消耗积分
    private String integralTaken;
    // 公司名
    private String company;
    // 地址
    private String address;
    // 收件人
    private String name;
    // 收件手机
    private String mobile;
    // 下单时间
    private String orderTime;
    // 产品图片
    private String imageUrl;
    // sku id
    private String skuId;

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getOrderState() {
        return orderState;
    }

    public void setOrderState(String orderState) {
        this.orderState = orderState;
    }

    public String getLogisticsInfo() {
        return logisticsInfo;
    }

    public void setLogisticsInfo(String logisticsInfo) {
        this.logisticsInfo = logisticsInfo;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getIntegralTaken() {
        return integralTaken;
    }

    public void setIntegralTaken(String integralTaken) {
        this.integralTaken = integralTaken;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public JDOrderDetailModel() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.orderCode);
        dest.writeString(this.orderState);
        dest.writeString(this.logisticsInfo);
        dest.writeString(this.goodsName);
        dest.writeString(this.integralTaken);
        dest.writeString(this.company);
        dest.writeString(this.address);
        dest.writeString(this.name);
        dest.writeString(this.mobile);
        dest.writeString(this.orderTime);
        dest.writeString(this.imageUrl);
        dest.writeString(this.skuId);
    }

    protected JDOrderDetailModel(Parcel in) {
        this.orderCode = in.readString();
        this.orderState = in.readString();
        this.logisticsInfo = in.readString();
        this.goodsName = in.readString();
        this.integralTaken = in.readString();
        this.company = in.readString();
        this.address = in.readString();
        this.name = in.readString();
        this.mobile = in.readString();
        this.orderTime = in.readString();
        this.imageUrl = in.readString();
        this.skuId = in.readString();
    }

    public static final Creator<JDOrderDetailModel> CREATOR = new Creator<JDOrderDetailModel>() {
        @Override
        public JDOrderDetailModel createFromParcel(Parcel source) {
            return new JDOrderDetailModel(source);
        }

        @Override
        public JDOrderDetailModel[] newArray(int size) {
            return new JDOrderDetailModel[size];
        }
    };
}
